package reflect;

import java.sql.Date;

public class Person extends Human implements Behavior {
    private int id;
    private String name;
    public int age;
    public int score;
    public Date date;

    public Person() {
    }


    public Person(int id, String name) {
        this.id = id;
        this.name = name;
    }

    private Person(int id, String name, int score) {
        this.id = id;
        this.name = name;
        this.score=score;
    }


    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Date getDate() {
        return date;
    }

    public void setDate(Date date) {
        this.date = date;
    }


    public int getAge() {
        return age;
    }


    public void setAge(int age) {
        this.age = age;
    }

    public int getScore() {
        return score;
    }

    public void setScore(int score) {
        this.score = score;
    }

    @Override
    public void say() {
        System.out.println("student say");

    }


    @Override
    public void run() {
        System.out.println("student run");

    }

    public void go(String speed) {
        System.out.println("go speed: " + speed);
    }

}
